package org.dromara.run.domain.bo;

import org.dromara.run.domain.Score;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 阳光跑成绩表业务对象 phy_run_score
 *
 * @author chl
 * @date 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Score.class, reverseConvertGenerate = false)
public class ScoreBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long scoreId;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 用户id
     */
    @NotBlank(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberId;

    /**
     * 计划id
     */
    @NotBlank(message = "计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scheduleId;

    /**
     * 跑步总次数
     */
//    @NotNull(message = "跑步总次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalRuns;

    /**
     * 跑步总里程
     */
//    @NotNull(message = "跑步总里程不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal totalMileage;

    /**
     * 有效跑步次数
     */
//    @NotNull(message = "有效跑步次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long validRuns;

    /**
     * 有效跑步里程
     */
//    @NotNull(message = "有效跑步里程不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal validMileage;

    /**
     * 晨跑次数
     */
//    @NotNull(message = "晨跑次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long morningRuns;

    /**
     * 晨跑里程
     */
//    @NotNull(message = "晨跑里程不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal morningMileage;

    /**
     * 跑步成绩分数
     */
//    @NotNull(message = "跑步成绩分数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal score;

    /**
     * 修改后分数
     */
//    @NotNull(message = "修改后分数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal modifyScore;

    private String studentName;

    private String years;

    private String collegeId;

    private String professionalId;

    private String gender;

    private String semester;


    private String classId;




}
